import request from '@/utils/request'

const api = {
    apipath: '/backlog',
}
// 邮件数量查询
export function getEmailList(params)
{
    return request({
        url: '/email/sjx/wdsl',
        method: 'get',
        params
    })
}

// 站内消息数量查询
export function getNetWorkNum()
{
    return request({
        url: '/network/getNetWorkNum',
        method: 'get'
    })
}

export function readNetwork(params)
{
    return request({
        url: '/network/readNetwork',
        method: 'get',
        params
    })
}


export function getDbsxNum()
{
    return request({
        url: "/dbsxgl/getCount",
        method: 'get'
    })
}

// 查询
export function getList(params)
{
    return request({
        url: api.apipath + '/list',
        method: 'get',
        params
    })
}

export function getList1(params)
{
    return request({
        url: '/backlog/yq/list',
        method: 'get',
        params
    })
}
// 查询详情
export function getInfo(unid)
{
    return request({
        url: api.apipath + unid,
        method: 'get'
    })
}
// 修改
export function saveInfo(params)
{
    return request({
        url: api.apipath,
        method: 'post',
        data: params
    })
}
// 删除
export function deleteInfo(params)
{
    return request({
        url: api.apipath,
        method: 'delete',
        params
    })
}

export function checkDelete(params)
{
    return request({
        url: '/grbg/checkDelete',
        method: 'get',
        params: params
    })
}

export function yqdb(params)
{
    return request({
        url: '/backlog/yqdb',
        method: 'get',
        params: params
    })
}
//获取合同管理数量
export function getHtglNum()
{
    return request({
        url: '/htgl/htsp/PopFrameToBacklogInHomePage',
        method: 'post',
    })
}
// 获取更新管理数据
export function getGxglNum()
{
    return request({
        url: '/gxgl/selectUnviewed',
        method: 'get',
    })
}
// 记录更新管理查看行为
export function recordView(params)
{
    return request({
        url: '/gxgl/recordView',
        method: 'post',
        params: params
    })
}